package za.ac.lance.polymorphism.service.impl;

import za.ac.lance.polymorphism.model.LoanRequestHandler;
import za.ac.lance.polymorphism.service.Validator;

/**
 * File Name: BusinessLoanValidator.java
 * Version: 
 * Description: 
 * Package: za.ac.lance.polymorphism.service.impl
 * Author: Lance
 * Date: Feb 23, 2012
 */
public class BusinessLoanValidator implements Validator
{

    public BusinessLoanValidator()
    {
    }

    @Override
    public Boolean isValid(LoanRequestHandler handler)
    {
        if (handler.getBalance() > 5000 && handler.getPeriod() > 2)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
